﻿@page
@model IndexModel
@{
    ViewData["Title"] = "Home page";
}

@if (Model.UserEmail == null)
{
    <div class="text-center">
        <h1 class="display-4">Welcome</h1>
        <p> <a href="https://localhost:7028/Login">点击这里登录</a></p>
        <p> <a href="https://localhost:7028/Users/Create">点击这里注册</a></p>
    </div>
}
else
{
    <div class="text-center">
        <h1 class="display-4">Welcome, @Model.UserEmail+@Model.UserId</h1>
        <a asp-page="./Index" asp-route-handler="Logout" class="btn btn-primary">退出登录</a>
    </div>
}